import request from '@/utils/request'

// 查询OA系统应收账款汇总列表
export function listReceivable(query) {
  return request({
    url: '/system/summarys/list',
    method: 'get',
    params: query
  })
}

// 查询OA系统应收账款汇总详细
export function getReceivable(id) {
  return request({
    url: '/system/summarys/' + id,
    method: 'get'
  })
}

// 新增OA系统应收账款汇总
export function addReceivable(data) {
  return request({
    url: '/system/summarys',
    method: 'post',
    data: data
  })
}

// 修改OA系统应收账款汇总
export function updateReceivable(data) {
  return request({
    url: '/system/summarys',
    method: 'put',
    data: data
  })
}

// 删除OA系统应收账款汇总
export function delReceivable(id) {
  return request({
    url: '/system/summarys/' + id,
    method: 'delete'
  })
}

export function getReceivableList(id) {
  return request({
    url: `/system/summarys/list1?id=${id}`,
    method: 'get'
  })
}
